;$(function() {
	var id = $("#id").val();
	getInfo(id);
})

function getInfo(id){
	   $.ajax({
        url: ctxPath+"/agency/workGuide/findById/"+id,
        type: 'GET',
        success: function(d){
        	var success = d.success;
        	 if(success==true){
        	 var data=  d.data;
        	 if(data!=null){
        		 $("#typeName").html(data.typeName);
        		 $("#name").html(data.name);
        		 $("#content").html(data.content);
        		 if(data.fileIds!=null){
           			 var img = "";
           			 var url=ctxPath+"/file/showImage/";
           			 for(var i=0;i<data.fileIds.length;i++){
           				 var temp = url+data.fileIds[i];
           				 img+='<li>'
             			+'<a href="'+temp+'" data-type="image">'
        				+'<img src="'+temp+'" alt="" width="100px;">'
        			    +'</a>'
        			    +'</li>'  ;
           			 }
           	    $("#dropzone").html(img);
           	 $('.plusview').plusview({
         		height : 400,
         		hide : "hide",
         		show : "show"
         	});
           	}	 
        	 }
        	}
        } 
    });
}
